export const API = {
  user: {
    // 登入
    login: `/user/login`,
    logout: '/user/logout',

    check: `/user/user_auth`,

    // 用户信息
    userinfo: `/user/info`,

    apply: `/user/info`,

    sms: `/user/code`,

    price: `/gift/my`,

    share: `/user/share`,
    /** 获取用户改装信息 */
    design: `/user/design`,
    /** 存储改装信息 */
    saveDesign: '/user/design',
    /** 获取用户已解锁配件信息 */
    fitting: `/user/fitting`,
    /** 获取分享二维码 */
    qrcode: '/user/qrcode',
    /** 提交手机号 */
    userPhone: '/user/phone',
    getPhone: '/user/phone',
    /**  */
    userPhoneAndAddress: '/user/info/modify',
    /** 合成卡片 */
    userCardComposite: '/user/card/composite',
    /** 查询剩余抽卡次数 */
    userCardDrawNum: '/user/card/draw_num',
    /**
     * 校验活动是否结束
     */
    userActivity: '/user/activity',
    /** 卡片抽取 */
    userCardDraw: '/user/card/draw',
    /** 获取我的卡片记录 */
    userCardList: '/user/card/list',
    /** 获取剩余游戏次数 "state": 1   # 1 是有游戏次数，  2是没有游戏次数但是邀请会获得游戏次数， 3是没有游戏次数也邀请也不会获得游戏次数 */
    userGameNum: '/user/game/num'
  },

  stuff: {
    entire: `/game/props/list`,

    mine: `/game/props/my`,

    share: `/game/share`,

    use: `/game/reward/use`,

  },

  team: {
    entire: `/team/list`,

    join: `/team/join`,

    detail: `/team/detail`,
  },


  game: {
    detail: `/activity/detail`,

    share: `/step/share`,

    entire: `/game/list`,

    select: `/game/select`,

    remain: `/game/remain`,

    start: `/user/game/start`,

    finish: `/user/game/end`,
  },

  rank: {
    entire: `/user/rank/list`,

    mine: `/game/record/list`,
  },

  wx: {
    config: `/user/wechat_share_info`
  },

  map: {
    detail: `/activity/maps`
  },

  activity: {
    share: `/activity/share`,

    entire: `/activity/list`,

    status: `/activity/user_process`,

    result: `/team/detail`,

    activation: `/activity/status`,

    pic: `/activity/pic`
  },

  poster: {
    create: `/activity/essay`
  },

  lottery: {
    remain: `/gift/draw_num`,

    entire: `/gift/list`,

    draw: `/gift/draw`
  },

  prize: {
    entire: `/gift/list`,

    receive: `/activity/receive`,

    check: `/game/reward/status`,

    reward: `/game/reward/info`,

    mine: `/user/gifts`,

    address: {
      create: `/gift/exchange_info`
    }
  }
}